﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TournamentOrganizerWPF
{
    /// <summary>
    /// Interaction logic for MainMenue.xaml
    /// </summary>
    public partial class MainMenue : Window
    {
        public MainMenue()
        {
            InitializeComponent();
        }

        private void LoadTournament(object sender, RoutedEventArgs e)
        {
            var tournament = LoadSave.LoadTournament(); 
            Window mWindow = new MainWindow(tournament);
            mWindow.Show();
            this.Close();
        }

        private void NewTournament(object sender, RoutedEventArgs e)
        {
            Window mWindow = new MainWindow();
            mWindow.Show();
            this.Close();
        }
    }
}
